package com.cainezhu.coolwind.biz.impl;

import java.text.ParseException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.cainezhu.coolwind.bean.User;
import com.cainezhu.coolwind.biz.UserService;
import com.cainezhu.coolwind.dao.UserDao;

public class UserServiceImpl implements UserService {
	
	UserDao userDao;
    
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public User getUser(String uname) throws ParseException {
		// TODO Auto-generated method stub
			return userDao.getUser(uname);
	}

	@Override
	public List<User> getUsersList() {
		// TODO Auto-generated method stub
		return userDao.getUsersList();
	}

	@Override
	public boolean updateUserById(User user) {
		// TODO Auto-generated method stub
		return userDao.updateUserById(user);
	}
}
